package com.jxin.mall.weixin.service.api;


import com.jxin.mall.entity.entity.GlobalRsp;
import io.swagger.annotations.*;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.zalando.problem.Problem;

/**
 * 微信服务提供外部查询redis中key的接口
 * @author 蔡佳新
 * @version 1.0
 * @since jdk 1.8
 */
@Api(tags = "微信公总号redis key外部查询接口")
public interface WxRedisKeyService {
    /**
     * 会员注册获取验证码,根据手机号码
     * @param phone 手机号码
     * @return 应用对象
     * @author 蔡佳新
     */
    @ApiOperation(value = "会员注册获取验证码", response = String.class)
    @GetMapping(value = "/getMemberRegisterCodeByPhone", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    @ApiResponses({@ApiResponse(code=200,message="响应请求成功"),
                   @ApiResponse(code=201,message="验证码不存在"),
                   @ApiResponse(code=500,message="系统错误")})
    GlobalRsp<String> getMemberRegisterCodeByPhone(
            @ApiParam(value = "电话号码", required = true) @RequestParam(name = "phone") String phone);
}
